package org.aphelie.torg.ruler.internal.core.character;

import org.aphelie.torg.ruler.core.IModelChangeProvider;
import org.aphelie.torg.ruler.core.ModelChangedEvent;

public class AttributeChangedEvent extends ModelChangedEvent {
    public static final String P_ATTRIBUTE_VALUE = "att_value"; //$NON-NLS-1$

    private Object attribute;

    public AttributeChangedEvent(IModelChangeProvider provider, Object element, Object attribute, String oldValue, String newValue) {
        super(provider, element, P_ATTRIBUTE_VALUE, oldValue, newValue);
        this.attribute = attribute;
    }

    public Object getChangedAttribute() {
        return attribute;
    }
}